package beautiful.butterfly.server.httpserver.mvc.util;

import beautiful.butterfly.server.httpserver.mvc.http.Request;


public class WebApp {
    // 设置编码
    static final String Utf_8 = "utf-8";


    /**
     * 返回http://www.baidu.com:8080
     */
    public static String getWebRootPath(Request request) {
//        String path = request.getContextPath();
//        StringBuilder __ROOT_PATH__ = new StringBuilder();
//        __ROOT_PATH__.append(request.getScheme()).append("://").append(request.getServerName()).append(":").append(request.getServerPort()).append(path);
//        return __ROOT_PATH__.toString();
        return null;

    }

    /**
     * 返回http://www.baidu.com:8080/__PUBLIC__
     */
    public static String getPublicPath(Request request) {
        String __PUBLIC__ = getWebRootPath(request) + "/__PUBLIC__";// 资源文件
        return __PUBLIC__;

    }


    public static void main(String[] s) {
        System.out.print("PRIMARY_KEY".toLowerCase());
    }
}
